<template>
  <div class="roleManage">
    <el-tabs
      class="eltabBox"
      type="card"
      v-model="activeName"
      @tab-click="handleClick"
    >
      <el-tab-pane label="档案配置" name="first">
        <recordItem></recordItem>
      </el-tab-pane>
      <el-tab-pane label="角色配置" name="second">
        <roleItem v-if="activeName === 'second'"></roleItem>
      </el-tab-pane>
      <el-tab-pane label="权限配置" name="third">
        <limitsItem v-if="activeName === 'third'"></limitsItem>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import recordItem from "@/views/manage/recordItem";
import roleItem from "@/views/manage/roleItem";
import limitsItem from "@/views/manage/limitsItem";
export default {
  name: "configManage",
  components: { recordItem, roleItem, limitsItem },
  data() {
    return {
      activeName: "first"
    };
  },

  methods: {
    handleClick() {}
  }
};
</script>
<style lang="scss" scoped>
.roleManage {
  padding: 20px;
  width: 100%;
  background-color: #fff;
}
</style>
